﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eieboom.General;

namespace Eieboom
{
    ////在主站点注册区域AreasBlog,需要把站点部署到子目录时会用到
    //它实现了AreaRegistration基类。然后我们注册区域路由就会在Global.asax的Application_Start事件方法中去执行注册到主站点的路由表中
    public class AdminRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "BlogAdmin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "BlogAdmin/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }

}